go/types.dependency.Name (method)
42 uses
go/types (current package)
decl.go#L22: if obj.Name() != "_" {
decl.go#L25: err.addf(obj, "%s redeclared in this block", obj.Name())
decl.go#L44: s += p.Name()
decl.go#L265: check.trace(obj.Pos(), "## cycle detected: objPath = %s->%s (len = %d)", pathString(cycle), obj.Name(), len(cycle))
decl.go#L307: return packagePrefix(obj.Pkg(), check.qualifier) + obj.Name()
errors.go#L70: err.addf(obj, "other declaration of %s", obj.Name())
errsupport.go#L54: alt = obj.Name()
initorder.go#L38: fmt.Printf("\t%s depends on\n", obj.Name())
initorder.go#L40: fmt.Printf("\t\t%s\n", dep.Name())
initorder.go#L43: fmt.Printf("\t%s has no dependencies\n", obj.Name())
initorder.go#L51: fmt.Printf("\t%s depends on %d nodes\n", n.obj.Name(), n.ndeps)
initorder.go#L53: fmt.Printf("\t\t%s is dependent\n", p.obj.Name())
initorder.go#L74: n.obj.Name(), n.obj.order(), n.ndeps)
initorder.go#L173: check.errorf(obj, InvalidInitCycle, "initialization cycle: %s refers to itself", obj.Name())
initorder.go#L178: err.addf(obj, "initialization cycle for %s", obj.Name())
initorder.go#L182: err.addf(obj, "%s refers to %s", obj.Name(), next.Name())
object.go#L33: Name() string // package local object name
object.go#L564: if obj.Pkg() != nil && obj.Pkg().scope.Lookup(obj.Name()) == obj {
object.go#L567: buf.WriteString(obj.Name())
object.go#L601: if obj.Name() == "any" && obj.Parent() == Universe {
resolver.go#L106: assert(ident.Name == obj.Name())
resolver.go#L338: err.addf(d.spec.Name, "%s redeclared in this block", alt.Name())
resolver.go#L472: err.addf(alt, "%s already declared through import of %s", alt.Name(), pkg.Imported())
resolver.go#L475: err.addf(alt, "%s already declared through dot-import of %s", alt.Name(), obj.Pkg())
scope.go#L95: name := obj.Name()
scope.go#L184: if obj.Name() != name {
selection.go#L175: fmt.Fprintf(&buf, ") %s", s.obj.Name())
struct.go#L203: err.addf(atPos(pos), "%s redeclared", obj.Name())
typexpr.go#L41: if obj.Name() == "any" && obj.Parent() == Universe {
typexpr.go#L53: check.errorf(e, NotAType, "%s is not a type", obj.Name())
typexpr.go#L84: if pkgName := check.dotImportMap[dotImportKey{scope, obj.Name()}]; pkgName != nil {
universe.go#L294: name := obj.Name()
golang.org/x/exp/apidiff
compatibility.go#L340: m[obj.Name()] = obj
messageset.go#L65: return fmt.Sprintf("%s.%s", tn, obj.Name())
messageset.go#L68: return obj.Name()
golang.org/x/tools/go/types/objectpath
objectpath.go#L216: if scope.Lookup(obj.Name()) == obj {
objectpath.go#L222: return Path(obj.Name()), nil
objectpath.go#L277: path := append(empty, o.Name()...)
objectpath.go#L304: path := append(empty, o.Name()...)
golang.org/x/tools/internal/gcimporter
iexport.go#L322: return obj.Name()
iexport.go#L1240: name := obj.Name()